package cn.tedu.submarine;
import javax.swing.ImageIcon;
//图片位置:点项目名称，右键New Directory，命名为img，将图片粘贴到img中

/**
 * 图片类
 */
public class Images {
//  公开的  静态的   图片类型  变量名
    public static ImageIcon sea;
    public static ImageIcon gameover;
    public static ImageIcon battleship;
    public static ImageIcon obsersubm;
    public static ImageIcon torpesubm;
    public static ImageIcon minesubm;
    public static ImageIcon mine;
    public static ImageIcon bomb;

    static{ //初始化静态图片
        sea = new ImageIcon("img/sea.png"); //读取img下的sea.png到变量sea中
        gameover = new ImageIcon("img/gameover.png");
        battleship = new ImageIcon("img/battleship.png");
        obsersubm = new ImageIcon("img/obsersubm.png");
        torpesubm = new ImageIcon("img/torpesubm.png");
        minesubm = new ImageIcon("img/minesubm.png");
        mine = new ImageIcon("img/mine.png");
        bomb = new ImageIcon("img/bomb.png");
    }


}
























